package xjtu.sad.zbsj.util;

import java.util.ArrayList;
import java.util.List;

public class MarkInfo {
    private Integer markId;
    private Integer contentId;
    private String fileName;
    private List<MarkDetail> markDetailList;

    public MarkInfo() {
        markDetailList = new ArrayList<>();
    }

    public Integer getMarkId() {
        return markId;
    }

    public void setMarkId(Integer markId) {
        this.markId = markId;
    }

    public Integer getContentId() {
        return contentId;
    }

    public void setContentId(Integer contentId) {
        this.contentId = contentId;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public List<MarkDetail> getMarkDetailList() {
        return markDetailList;
    }

    public void setMarkDetailList(List<MarkDetail> markDetailList) {
        this.markDetailList = markDetailList;
    }

    public void addMarkDetail(MarkDetail markDetail) {
        markDetailList.add(markDetail);
    }


    @Override
    public String toString() {
        return "MarkInfo{" +
                "markId=" + markId +
                ", contentId=" + contentId +
                ", fileName='" + fileName + '\'' +
                ", markDetailList=" + markDetailList +
                '}';
    }
}
